<?php 
/* SVN FILE: $Id$ */
/* EventPrivilage Test cases generated on: 2010-02-13 15:11:16 : 1266066676*/
App::import('Model', 'EventPrivilage');

class EventPrivilageTestCase extends CakeTestCase {
	var $EventPrivilage = null;
	var $fixtures = array('app.event_privilage');

	function startTest() {
		$this->EventPrivilage =& ClassRegistry::init('EventPrivilage');
	}

	function testEventPrivilageInstance() {
		$this->assertTrue(is_a($this->EventPrivilage, 'EventPrivilage'));
	}

	function testEventPrivilageFind() {
		$this->EventPrivilage->recursive = -1;
		$results = $this->EventPrivilage->find('first');
		$this->assertTrue(!empty($results));

		$expected = array('EventPrivilage' => array(
			'id' => 1,
			'event_id' => 1,
			'user_type_id' => 1,
			'privilage' => 'Lorem ipsum dolor sit amet'
		));
		$this->assertEqual($results, $expected);
	}
}
?>